function getTeacher() {
  return [
    {
      src: '/asserts/imgs/bottom-bar/teacher_course.png',
      active: false,
      name: '班级',
      ori: '/asserts/imgs/bottom-bar/teacher_course',
      path: "/pages/teacher/myclass/teacherClass/teacherClass"
    },
    {
      src: '/asserts/imgs/bottom-bar/teacher_mine.png',
      active: false,
      name: '我的',
      ori: '/asserts/imgs/bottom-bar/teacher_mine',
      path: "/pages/teacher/mine/center/mine"
    }
  ]
}
function getStudent() {
  return [
    // {
    //   src: '/asserts/imgs/bottom-bar/course.png',
    //   active: false,
    //   name: '课程',
    //   ori: '/asserts/imgs/bottom-bar/course',
    //   path: "/pages/student/course/courseList/course"
    // },
    {
      src: '/asserts/imgs/bottom-bar/course.png',
      active: false,
      name: '班级',
      ori: '/asserts/imgs/bottom-bar/course',
      path: "/pages/student/course/classList/classList"
    },
    {
      src: '/asserts/imgs/bottom-bar/homework.png',
      active: false,
      name: '作业',
      ori: '/asserts/imgs/bottom-bar/homework',
      path: '/pages/student/homework/homeworkList/homework'
    },
    {
      src: '/asserts/imgs/bottom-bar/mine.png',
      active: false,
      name: '我的',
      ori: '/asserts/imgs/bottom-bar/mine',
      path: '/pages/student/mine/center/mine'
    }
  ]
}
function teacher_active(index) {
  var teacher = getTeacher();
  var list = teacher[index].src.split(".");
  teacher[index].src = list[0] + "-a." + list[1];
  teacher[index].active = true;
  return teacher;
}
function student_active(index) {
  var student = getStudent();
  var list = student[index].src.split(".");
  student[index].src = list[0] + "-a." + list[1];
  student[index].active = true;
  return student;
}
module.exports = {
  teacher_active,
  student_active
}